package com.youlai.boot.food.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.food.model.entity.SysFoodInfo;
import com.youlai.boot.food.model.form.SysFoodInfoForm;

/**
 * 食物数据对象转换器
 *
 * @author cuisheng
 * @since 2025-03-30 16:17
 */
@Mapper(componentModel = "spring")
public interface SysFoodInfoConverter{

    SysFoodInfoForm toForm(SysFoodInfo entity);

    SysFoodInfo toEntity(SysFoodInfoForm formData);
}